2006-06-30 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtknotebook.c (gtk_notebook_tab_space): Remove
+ redundant assignments to page, which may cause NULL
+ dereferences. (#346334, Dave Vasilevsky)
+
* demos/gtk-demo/editable_cells.c: Portability fix.
(#346375, Thomas Klausner)
2006-06-30 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtknotebook.c (gtk_notebook_tab_space): Remove
+ redundant assignments to page, which may cause NULL
+ dereferences. (#346334, Dave Vasilevsky)
+
* demos/gtk-demo/editable_cells.c: Portability fix.
(#346375, Thomas Klausner)
{
GtkNotebookPrivate *priv;
GtkWidget *widget;
- GtkNotebookPage *page;
GList *children;
gint tab_pos = get_effective_tab_pos (notebook);
gint tab_overlap;
while (children)
{
+ GtkNotebookPage *page;
+
page = children->data;
children = children->next;
while (children)
{
+ GtkNotebookPage *page;
+
page = children->data;
children = children->next;
if (*tab_space > *max - *min - tab_overlap)
{
*show_arrows = TRUE;
- page = notebook->focus_tab->data;
/* take arrows into account */
*tab_space = widget->allocation.width - tab_overlap -
if (*tab_space > *max - *min - tab_overlap)
{
*show_arrows = TRUE;
- page = notebook->focus_tab->data;
/* take arrows into account */
*tab_space = widget->allocation.height -